package gemini.castor.ui.client.service;

import gemini.basic.model.Address;
import gemini.basic.model.User;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface UserServiceAsync {
	void getUserByName(String username, AsyncCallback<User> callback);

	void save(User user, AsyncCallback<User> callback);
	
	void savePassword(String userName,String password,String newPassword, AsyncCallback<Boolean> callback);
	
	void savePhone(String userName,String password,String newPhone, AsyncCallback<Boolean> callback);

	void saveEmail(String userName,String password,String newEmail, AsyncCallback<Boolean> callback);

	void saveAddress(String userName,String password,Address newAddress, AsyncCallback<Boolean> callback);
}
